package com.xbongbong.pro.domain.entity;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.util.DateUtil;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @description: 首页看板筛选偏好配置表
 * @Author: hongxiao
 * @date: 2019-02-26 15:42
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class IndexFilterEntity extends Entity {
    /**
     * 主键id
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 员工id
     */
    private String userId;
    /**
     * 个人配置
     */
    private JSONObject contentData;
    /**
     * 创建时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 删除标记
     */
    private Integer del;

    public IndexFilterEntity() {
        long now = DateUtil.getInt();
        this.updateTime = now;
        this.addTime = now;
        this.del = DelEnum.NORMAL.getDel();
    }
}
